<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>论文致谢模板大全 - AI论文写作助手</title>
    <meta name="description" content="专业的论文致谢模板库，提供各种类型的致谢模板，包括通用模板、学术模板、团队模板等，助您快速完成论文致谢部分。">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <script src="css/tailwindcss.js"></script>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/tailwind-config.js"></script>
    <script src="js/navbar.js"></script>
    <script src="js/footer.js"></script>
</head>
<body class="bg-gradient-to-br from-light to-gray-100 font-inter min-h-screen flex flex-col">

    <!-- 主要内容 -->
    <main class="flex-grow container mx-auto px-4 py-8">
        <!-- 页面标题 -->
        <div class="text-center mb-8" style="animation: fadeInUp 0.6s ease-out both;">
            <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">
                <i class="fa fa-heart text-red-500 mr-3"></i>
                论文<span class="text-primary">致谢模板</span>大全
            </h1>
            <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                专业的论文致谢模板库，助您快速完成论文致谢部分
            </p>
        </div>

        <!-- 搜索和筛选区域 -->
        <div class="bg-white rounded-2xl shadow-lg p-6 mb-8" style="animation: fadeInUp 0.8s ease-out both;">
            <div class="flex flex-col md:flex-row gap-4 mb-6">
                <!-- 搜索框 -->
                <div class="flex-1" style="animation: fadeInUp 0.9s ease-out both;">
                    <div class="relative">
                        <input type="text" id="searchInput" placeholder="搜索致谢模板..." 
                               class="w-full px-4 py-3 pl-12 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent transition-all duration-300">
                        <i class="fa fa-search absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                    </div>
                </div>
                
                <!-- 分类筛选 -->
                <div class="flex flex-wrap gap-2" style="animation: fadeInUp 1.0s ease-out both;">
                    <button class="category-btn active px-4 py-2 rounded-lg bg-red-500 text-white hover:bg-red-600 transition-colors" data-category="all">
                        <i class="fa fa-th-large mr-2"></i>全部
                    </button>
                    <button class="category-btn px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors" data-category="通用模板">
                        <i class="fa fa-file-text mr-2"></i>通用模板
                    </button>
                    <button class="category-btn px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors" data-category="学术模板">
                        <i class="fa fa-graduation-cap mr-2"></i>学术模板
                    </button>
                    <button class="category-btn px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors" data-category="文学模板">
                        <i class="fa fa-book mr-2"></i>文学模板
                    </button>
                    <button class="category-btn px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors" data-category="团队模板">
                        <i class="fa fa-users mr-2"></i>团队模板
                    </button>
                    <button class="category-btn px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors" data-category="国际模板">
                        <i class="fa fa-globe mr-2"></i>国际模板
                    </button>
                </div>
            </div>

            <!-- 统计信息 -->
            <div class="flex flex-wrap gap-4 text-sm text-gray-600" style="animation: fadeInUp 1.1s ease-out both;">
                <span id="totalCount">共 0 个致谢模板</span>
                <span id="currentCount">显示 0 个</span>
                <span id="searchTime">搜索用时 0ms</span>
            </div>
        </div>

        <!-- 致谢模板列表 -->
        <div id="thanksContainer" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8" style="animation: fadeInUp 1.0s ease-out both;">
            <!-- 致谢模板卡片将通过JavaScript动态生成 -->
        </div>

        <!-- 分页 -->
        <div id="paginationContainer" class="flex justify-center items-center space-x-2" style="animation: fadeInUp 1.2s ease-out both;">
            <!-- 分页按钮将通过JavaScript动态生成 -->
        </div>
    </main>

    <!-- 页脚 -->
    <div id="footer-container"></div>

    <!-- 致谢详情模态框 -->
    <div id="thanksModal" class="fixed inset-0 bg-black bg-opacity-50 hidden z-[9999] flex items-center justify-center p-4" style="z-index: 9999;">
        <div class="bg-white rounded-2xl max-w-4xl w-full max-h-[90vh] overflow-hidden animate-modal-in">
            <div class="flex justify-between items-center p-6 border-b">
                <h3 id="modalTitle" class="text-xl font-bold text-gray-800"></h3>
                <button id="closeModal" class="text-gray-400 hover:text-gray-600">
                    <i class="fa fa-times text-xl"></i>
                </button>
            </div>
            <div class="p-6 overflow-y-auto max-h-[calc(90vh-120px)]">
                <div class="mb-4">
                    <div class="flex items-center justify-between mb-2">
                        <label class="text-sm font-medium text-gray-700">致谢内容：</label>
                        <button id="copyThanks" class="px-4 py-2 bg-red-500 text-white rounded-lg hover:bg-red-600 transition-colors text-sm">
                            <i class="fa fa-copy mr-1"></i>复制内容
                        </button>
                    </div>
                    <textarea id="modalThanks" readonly 
                            class="w-full h-80 p-4 border border-gray-300 rounded-lg resize-none focus:ring-2 focus:ring-red-500 focus:border-transparent text-sm leading-relaxed"></textarea>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4 text-sm">
                    <div>
                        <span class="font-medium text-gray-700">分类：</span>
                        <span id="modalCategory" class="text-gray-600"></span>
                    </div>
                    <div>
                        <span class="font-medium text-gray-700">难度：</span>
                        <span id="modalDifficulty" class="text-gray-600"></span>
                    </div>
                    <div>
                        <span class="font-medium text-gray-700">使用次数：</span>
                        <span id="modalUsage" class="text-gray-600"></span>
                    </div>
                    <div>
                        <span class="font-medium text-gray-700">标签：</span>
                        <span id="modalTags" class="text-gray-600"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="js/thanks.js"></script>
    
    <style>
        /* 确保模态框在最顶层 */
        #thanksModal {
            z-index: 9999 !important;
        }
        
        /* 模态框打开时隐藏页面滚动 */
        body.modal-open {
            overflow: hidden;
        }
        
        /* 确保模态框背景覆盖整个页面 */
        #thanksModal.fixed {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
        }
        
        /* 致谢卡片悬停效果 - 完全仿照prompts.html */
        .thanks-card {
            transition: all 0.3s ease;
            transform: translateY(0);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .thanks-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border: 2px solid #ef4444;
            background: linear-gradient(white, white) padding-box,
                        linear-gradient(135deg, #ef4444, #dc2626, #ef4444) border-box;
        }
        
        .thanks-card:active {
            transform: translateY(-4px) scale(0.98);
        }
    </style>
</body>
</html>
